package com.zcz.umengpush.mapper;

import com.zcz.umengpush.pojo.PushUser;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author 王卫帅
 */
public interface PushUserMapper extends Mapper<PushUser> {
    //分页查询
//    @Select("select * from (\n" +
//            "select a.*,ROWNUM rn from (\n" +
//            "select * from push_user where usertype = '0' order by adddate\n" +
//            ")a where ROWNUM <= #{everyPage} * #{currentPage})\n" + //当前页 = 每页显示多少条*第几页
//            "where rn >= (#{currentPage}-1) * #{everyPage}+1") //要显示页数的信息
//    List<PushUser> selectList(int everyPage,int currentPage);




}
